<%--
  Created by IntelliJ IDEA.
  User: wangxixi
  Date: 2021/3/19
  Time: 14:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>班级管理系统</title>
</head>
<body onload="show2()">

    <div class="container">
           <table class="table" id="table ">
               <button class="btn btn-info" id="class_add" data-toggle="modal" data-target="#myModal">添加班级</button>
               <button class="btn btn-info" id="class_delete">删除班级</button>
               <button class="btn btn-info" id="class_edit" data-toggle="modal" data-target="#myModal">修改班级</button>
               <button class="btn btn-info" id="class_find">查询班级</button>
             <%--  <input type="text" id="s_code" placeholder="按班级编号查询" >--%>
               <input type="text" id="ss_code" placeholder="按班级编号查询" >
               <thead>
               <tr>
                   <td >班级选择</td>
                   <td >班级编号</td>
                   <td >班级名称</td>
                   <td >年级</td>
                   <td >班主任名称</td>
                   <td >班级口号</td>
                   <td >班级人数</td>
               </tr>
               </thead>
               <tbody id="tbody"></tbody>
           </table>
        <!-- 管理学生信息的模态框（Modal） -->
        <div class="modal " id="myModal" role="dialog">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button class="close" data-dismiss="modal" aria-hidden="true">
                            <span>&times;</span>
                        </button>
                        <h4 class="modal-title" id="myModalLabelAdd">班级信息</h4>
                    </div>
                    <form action="classGradeAddServlet" method="post">
                        <input type="hidden" id="flag" name="flag"/>
                        <div class="modal-body" id="modal-body">
                            <from class="">
                                <p>班级编号<input class="form-control" type="text"  id="m_code" placeholder="请输入班级编号">  </p>
                                <p>班级名称<input class="form-control" type="text"  id="m_className" placeholder="请输入班级名称" > </p>
                                <p>年级<input class="form-control" type="text"  id="m_gradeName" placeholder="请输入年级">  </p>
                                <p>班主任名称<input  class="form-control"  type="text"  id="m_headTeachName"placeholder="请输入班主任名称">  </p>
                                <p>班级口号<input class="form-control" type="text"  id="m_classSlogan" placeholder="请输入班级口号">  </p>
                                <p>班级人数<input class="form-control" type="text"  id="m_classPeople" placeholder="请输入班级人数">  </p>
                            </from>
                        </div>
                        <div class="modal-footer">
                            <button id="save" class="btn btn-info" data-dismiss="modal">保存</button>
                            <%--<button type="submit" class="btn btn-primary" >保存</button>--%>
                           <%-- <button type="reset" class="btn btn-default" data-dismiss="modal">取消</button>--%>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>


















    </div>

    <link href="./css/bootstrap.min.css" rel="stylesheet"/>
    <script src="./js/jquery-3.3.1.min.js" type="text/javascript"></script>
    <script src="./js/bootstrap.min.js" type="text/javascript"></script>
    <script src="js/ClassManage.js"></script>
   <style>
       .tt{
           width: 400px;
           height: 400px;
           margin-left: 1000px;
       }

   </style>

<div class="tt" >
    <h4>班级页面</h4>
    <%-- <input type="button" value="返回上一层" id="btn2" onclick="window.history.go(-1)">--%>
    <button class="btn btn-info" onclick="window.open('manage.jsp')" type="submit">返回上一层</button><br>
</div>
</body>
</html>
